package cn.itcast.service;

import cn.itcast.domain.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Think on 2017/10/6.
 */
public interface ArticleService {
    void save(Article article);

    void update(Article article);

    void delete(Article article);

    Article findOne(Integer id);

    Iterable<Article> findAll();

    Page<Article> findAllPage(Pageable pageable);

    List<Article> findByTitle(String string);

    Page<Article> findByTitle(String string, Pageable pageable);
}
